<?php

namespace app\api\controller;

use app\common\controller\Api;

/**
 * 首页接口
 */
class ServiceProcess extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    public function get_list()
    {
        $list = \app\api\model\ServiceProcess::where('status',1)->order('weigh','desc')->field('image')->select();
        foreach ($list as &$value){
            $value['image']=$value['image']?$this->request->domain().$value['image']:'';
        }
        $this->success('成功',['list' => $list]);
    }
}
